class Solution
{
public:
    bool isReachableAtTime(int sx, int sy, int fx, int fy, int t)
    {
        if (sx == fx && sy == fy)
        {
            return t != 1;
        }
        int time = abs(fx - sx) + abs(fy - sy) - min(abs(fx - sx), abs(fy - sy));
        return time <= t;
    }
};